import { _decorator, Component, Node } from 'cc';
import { entityUtil } from '../../ccc3-framework-core/framework/modules/entityUtil';
import { uiManager } from '../../ccc3-framework-core/framework/modules/uiManager';
import { UiForm } from '../../ccc3-framework-core/framework/ui/uiForm';
import { Debug } from '../../ccc3-framework-core/utils/Debug';
import { BundlesDefine, entityDefine, formDefine, pathDefine } from '../CustomDefine';
const { ccclass, property } = _decorator;

@ccclass('homeForm')
export class homeForm extends UiForm {
    @property(Node)
    btnMap: Node = null;

    start() {
        this.bindTouchEnd(this.btnMap, this.onMap)
    }

    private onMap() {
        uiManager.pushUIForm(pathDefine.formDir + formDefine.mapForm, () => {
            uiManager.hideUIForm(formDefine.homeForm)
        }, BundlesDefine.main)
    }



    update(deltaTime: number) {

    }
}

